<?php

namespace liketp;

require dirname(__DIR__) . '/vendor/autoload.php';

use liketp\facade\Timer;
use liketp\foundation\EventLoop;
use liketp\socket\SocketWorker;

$app = App::instance();
$app->initialize();

$sw = app(SocketWorker::class, ['127.0.0.1', '9527']);
$sw->setHandle(app('socket.event_handle'));
$sw->run();
